
				
//科室收入一天饼形图
var kssrDayOpt = {
					chart: {
						plotBackgroundColor: null,
						plotBorderWidth: null,
						plotShadow: false,
						type: 'pie',
					},
					colors: pieColorsArray,
					tooltip: {
						pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
					},
					plotOptions: {
						pie: {
							cursor: 'pointer',
							dataLabels: {
								enabled: true,
								color: '#fff',
								connectorWidth: 0,
								distance:3,
								format: '{point.percentage:.1f}% {point.name}',
								style: {
									color: '#fff',
									fontSize: '13px',
									fontWeight: "normal"
								}
							}
						}
					},
					series: [{
						name: 'Brands',
						size: 150,
						innerSize: '50%',
						borderWidth: 5,
						borderColor: 'transparent',
						colorByPoint: true,
					}]
				}

//科室收入当月
//var kssrMonthOpt =$.extend({},kssrDayOpt);

//科室收入当年
//var kssrYearOpt =$.extend({},kssrDayOpt);

function loadkssr(){
	$.ajax({
		url: "/mock/loadPie", 
		type: "POST",  
		success: function(dataz){
			kssrDayOpt.series[0].data=dataz.data.pieChart.dataday;
			console.log("kssrfx-d",kssrDayOpt.series[0].data);
			$("#kssrfx-d-content").highcharts(kssrDayOpt);
			
			var kssrMonthOpt =$.extend({},kssrDayOpt);
			kssrMonthOpt.series[0].data=dataz.data.pieChart.datamonth;
			console.log("kssrfx-m",kssrMonthOpt.series[0].data);
			$("#kssrfx-m-content").highcharts(kssrMonthOpt);
			
			var kssrYearOpt =$.extend({},kssrDayOpt);
			kssrYearOpt.series[0].data=dataz.data.pieChart.datayear;
			console.log("kssrfx-y",kssrYearOpt.series[0].data);
			$("#kssrfx-y-content").highcharts(kssrYearOpt);
      }
	
	});
	
}
